<?php
/**
 * @package		Joomla.Site
 * @subpackage	com_weblinks
 * @copyright	Copyright (C) 2005 - 2012 Open Source Matters, Inc. All rights reserved.
 * @license		GNU General Public License version 2 or later; see LICENSE.txt
 */

// no direct access
defined('_JEXEC') or die;

// Component Helper
jimport('joomla.application.component.helper');


/**
 * Weblinks Component Category Tree
 *
 * @static
 * @package		Joomla.Site
 * @subpackage	com_weblinks
 * @since 1.6
 */
class ForumHelper
{
	protected $params;
	
	
	public function __construct()
	{
		$app			= JFactory::getApplication();
		$this->params	= $app->getParams();
	}
	
	public function getRecaptcha()
	{
	
		if ($this->params->get('enable_recaptcha',1) && $privateKey = $this->params->get('recaptcha_private_key') && $publicKey = $this->params->get('recaptcha_public_key'))
		{
			if ($publicKey = $this->params->get('recaptcha_public_key'))
			{
				$recaptcha->publicKey	= $publicKey;
				$recaptcha->privateKey	= $privateKey;
			
				
				return $recaptcha;
			}
			
		}
		return false;
	}
}
